import request from '@/utils/request'

// 查询生长记录列表
export function listSysGrowthRecords(query) {
  return request({
    url: '/SysGrowthRecords/SysGrowthRecords/list',
    method: 'get',
    params: query
  })
}

// 查询生长记录详细
export function getSysGrowthRecords(id) {
  return request({
    url: '/SysGrowthRecords/SysGrowthRecords/' + id,
    method: 'get'
  })
}

// 新增生长记录
export function addSysGrowthRecords(data) {
  return request({
    url: '/SysGrowthRecords/SysGrowthRecords',
    method: 'post',
    data: data
  })
}

// 修改生长记录
export function updateSysGrowthRecords(data) {
  return request({
    url: '/SysGrowthRecords/SysGrowthRecords',
    method: 'put',
    data: data
  })
}

// 删除生长记录
export function delSysGrowthRecords(id) {
  return request({
    url: '/SysGrowthRecords/SysGrowthRecords/' + id,
    method: 'delete'
  })
}
